package bma.common.langutil.objectquery.impl;

import java.util.HashMap;
import java.util.Map;

public class SAccessHut {

	protected Map<String, IAccess> accessMap = new HashMap<String, IAccess>();

	public void put(String n, IAccess v, String alias) {
		accessMap.put(n, v);
		if (alias != null && !alias.isEmpty()) {
			String[] alist = alias.split(",");
			for (String a : alist) {
				accessMap.put(a.trim(), v);
			}
		}
	}

	public IAccess get(String n) {
		return accessMap.get(n);
	}
}
